package com.computer;

public class Display {
    private String name;
    private String resolution;

    public String getDisplay(){
        return "显示器名称："+this.name+"；\n分辨率："+this.resolution;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getResolution() {
        return resolution;
    }

    public void setResolution(String resolution) {
        this.resolution = resolution;
    }
}
